var gameConfig = {} ;
gameConfig.playerStatus = {
	USER_STATE_READY : 1020, // # 坐下，还没准备
	USER_STATE_ALREADY_READY : 1025 ,   // # 已经准备
	USER_STATE_INGAME : 1030,  //# 玩游戏中
	USER_STATE_ALLIN : 1040,  //# 已经全部ALLIN了，之后的跟注不用管他了
	USER_STATE_LOOK_CARD : 1045, //# 玩家看牌
	USER_STATE_GIVEUP : 1050,  //# 弃牌
};

//6人头像配置
gameConfig.headConfigSix = [
	{
		pos:cc.p(-65,-519),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(63,314),
		},
		scale:1,
	},
	{
		pos:cc.p(-339,-53),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(222,149),
		},
		scale:0.8,
	},
	{
		pos:cc.p(226,-53),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(-86,151),
		},
		scale:0.8,
	},
	{
		pos:cc.p(-346,222),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(222,132),
		},
		scale:0.8,
	},
	{
		pos:cc.p(223,223),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(-86,132),
		},
		scale:0.8,
	},
	{
		pos:cc.p(-58,391),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(223,17),
		},
		scale:0.8,
	},
]
//6人panel配置
gameConfig.panelConfigSix = [
	{
		pos:cc.p(-236,-331),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(243,123),
			"score":cc.p(387,123),
			"resultLabel":cc.p(280,65),
			"optstate":cc.p(237,40),
		},
	},
	{
		pos:cc.p(-208,-39),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(54,105),
			"resultLabel":cc.p(80,50),
			"optstate":cc.p(50,35),
		},
	},
	{
		pos:cc.p(90,-37),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(147,105),
			"resultLabel":cc.p(80,50),
			"optstate":cc.p(50,35),
		},
	},
	{
		pos:cc.p(-208,244),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(54,105),
			"resultLabel":cc.p(80,50),
			"optstate":cc.p(50,35),
		},
	},
	{
		pos:cc.p(90,244),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(147,105),
			"resultLabel":cc.p(80,50),
			"optstate":cc.p(50,35),
		},
	},
	{
		pos:cc.p(-58,310),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(-38,131),
			"resultLabel":cc.p(130,50),
			"optstate":cc.p(50,35),
		},
	},
]
//9人头像配置
gameConfig.headConfigNight = [
	{
		pos:cc.p(-360,-550),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(500,314),
		},
		scale:0.7,
	},
	{
		pos:cc.p(-360,-300),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(222,149),
		},
		scale:0.7,
	},
	{
		pos:cc.p(-360,-50),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(222,149),
		},
		scale:0.7,
	},
	{
		pos:cc.p(-360,200),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(222,149),
		},
		scale:0.7,
	},
	{
		pos:cc.p(-200,420),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(222,70),
		},
		scale:0.7,
	},
	{
		pos:cc.p(160,420),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(-100,70),
		},
		scale:0.7,
	},
	//7
	{
		pos:cc.p(270,200),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(-100,149),
		},
		scale:0.7,
	},

	{
		pos:cc.p(270,-50),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(-100,149),
		},
		scale:0.7,
	},

	{
		pos:cc.p(270,-300),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(-100,149),
		},
		scale:0.7,
	},
]

//9人panel配置
gameConfig.panelConfigNine = [
	{
		pos:cc.p(-236,-530),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(243,123),
			"score":cc.p(387,123),
			"resultLabel":cc.p(280,65),
			"optstate":cc.p(237,40),
		},
	},
	{
		pos:cc.p(-256,-310),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(54,105),
			"resultLabel":cc.p(80,50),
			"optstate":cc.p(50,35),
		},
	},
	{
		pos:cc.p(-256,-60),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(54,105),
			"resultLabel":cc.p(80,50),
			"optstate":cc.p(50,35),
		},
	},
	{
		pos:cc.p(-256,190),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(54,105),
			"resultLabel":cc.p(80,50),
			"optstate":cc.p(50,35),
		},
	},
	//5
	{
		pos:cc.p(-180,350),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(54,105),
			"resultLabel":cc.p(80,50),
			"optstate":cc.p(50,35),
		},
	},
	//6
	{
		pos:cc.p(60,350),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(54,105),
			"resultLabel":cc.p(80,50),
			"optstate":cc.p(50,35),
		},
	},
	//7
	{
		pos:cc.p(100,190),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(54,105),
			"resultLabel":cc.p(80,50),
			"optstate":cc.p(50,35),
		},
	},
	//8
	{
		pos:cc.p(100,-60),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(54,105),
			"resultLabel":cc.p(80,50),
			"optstate":cc.p(50,35),
		},
	},
	//9
	{
		pos:cc.p(100,-310),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(55,-26),
			"score":cc.p(54,105),
			"resultLabel":cc.p(80,50),
			"optstate":cc.p(50,35),
		},
	},
];

//12人头像配置
gameConfig.headConfigele = [
	//1
	{
		pos:cc.p(-360,-550),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(600,314),
		},
		scale:0.6,
	},
	//2
	{
		pos:cc.p(-360,-315),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(222,149),
		},
		scale:0.6,
	},
	//3
	{
		pos:cc.p(-360,-135),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(222,149),
		},
		scale:0.6,
	},
	//4
	{
		pos:cc.p(-360,45),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(222,149),
		},
		scale:0.6,
	},
		//5
	{
		pos:cc.p(-360,225),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(222,149),
		},
		scale:0.6,
	},
	//6
	{
		pos:cc.p(-360,440),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(222,70),
		},
		scale:0.6,
	},
	//7
	{
		pos:cc.p(-80,440),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(222,70),
		},
		scale:0.6,
	},

	//8
	{
		pos:cc.p(270,440),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(-100,70),
		},
		scale:0.6,
	},
	//9
	{
		pos:cc.p(270,225),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(-100,149),
		},
		scale:0.6,
	},
	//10
	{
		pos:cc.p(270,45),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(-100,149),
		},
		scale:0.6,
	},

	//11
	{
		pos:cc.p(270,-135),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(-100,149),
		},
		scale:0.6,
	},
	//12
	{
		pos:cc.p(270,-315),
		anchor:cc.p(0,0),
		subPos:{
			// "bg":cc.p(0,0),
			// "headImg":cc.p(64,86),
			// "name":cc.p(64,151),
			// "score":cc.p(63,25),
			// "mask":cc.p(0,5),
			// "zhuang":cc.p(13,165),
			"statuslayout":cc.p(-100,149),
		},
		scale:0.6,
	},
]




//12人panel配置
gameConfig.panelConfigEle = [
	{
		pos:cc.p(-236,-530),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(243,123),
			"score":cc.p(387,123),
			"resultLabel":cc.p(243,15),
		},
	},
	//2
	{
		pos:cc.p(-256,-325),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(97,-26),
			"score":cc.p(120,85),
			"resultLabel":cc.p(80,20),
		},
	},
	//3
	{
		pos:cc.p(-256,-145),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(97,-26),
			"score":cc.p(120,85),
			"resultLabel":cc.p(80,20),
		},
	},
	//4
	{
		pos:cc.p(-256,35),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(97,-26),
			"score":cc.p(120,85),
			"resultLabel":cc.p(80,20),
		},
	},
	//5
	{
		pos:cc.p(-256,215),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(97,-26),
			"score":cc.p(120,85),
			"resultLabel":cc.p(80,20),
		},
	},
	//6
	{
		pos:cc.p(-280,370),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(97,-26),
			"score":cc.p(120,85),
			"resultLabel":cc.p(90,20),
		},
	},
	//7
	{
		pos:cc.p(-80,370),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(60,-26),
			"score":cc.p(130,85),
			"resultLabel":cc.p(120,20),
		},
	},
	//8
	{
		pos:cc.p(120,370),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(60,-26),
			"score":cc.p(90,85),
			"resultLabel":cc.p(70,20),
		},
	},
	//9
	{
		pos:cc.p(100,215),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(97,-26),
			"score":cc.p(40,85),
			"resultLabel":cc.p(90,20),
		},
	},
	//10
	{
		pos:cc.p(100,35),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(97,-26),
			"score":cc.p(40,85),
			"resultLabel":cc.p(90,20),
		},
	},
	//11
	{
		pos:cc.p(100,-145),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(97,-26),
			"score":cc.p(40,85),
			"resultLabel":cc.p(90,20),
		},
	},
	//12
	{
		pos:cc.p(100,-325),
		anchor:cc.p(0,0),
		subPos:{
			"bgpanel":cc.p(0,0),
			"fenImg":cc.p(97,-26),
			"score":cc.p(40,85),
			"resultLabel":cc.p(90,20),
		},
	},
	
]

//6人聊天
gameConfig.chatConfigSix = [
    {
        pos:cc.p(20,-490),
        anchor:cc.p(0,0),
        type:1, //左边

    },
    {
        pos:cc.p(-310,-120),
        anchor:cc.p(0,0),
        type:1, //左边
    },
    {
        pos:cc.p(300,-153),
        anchor:cc.p(0,0),
        type:2, //右边
    },
    {
        pos:cc.p(-310,153),
        anchor:cc.p(0,0),
        type:1, //左边
    },
    {
        pos:cc.p(300,123),
        anchor:cc.p(0,0),
        type:2, //右边
    },
    {
        pos:cc.p(0,391),
        anchor:cc.p(0,0),
        type:1, //左边
    },
];








//9人聊天
gameConfig.chatConfigNine = [
    {
        pos:cc.p(-330,-530),
        anchor:cc.p(0,0),
        type:1, //左边

    },
    {
        pos:cc.p(-330,-280),
        anchor:cc.p(0,0),
        type:1, //左边
    },
    {
        pos:cc.p(-330,-30),
        anchor:cc.p(0,0),
        type:1, //右边
    },
    {
        pos:cc.p(-330,220),
        anchor:cc.p(0,0),
        type:1, //左边
    },
    {
        pos:cc.p(-170,440),
        anchor:cc.p(0,0),
        type:1, //右边
    },
    //6
    {
        pos:cc.p(200,420),
        anchor:cc.p(0,0),
        type:2, //左边
    },
    {
        pos:cc.p(310,200),
        anchor:cc.p(0,0),
        type:2, //左边
    },
    {
        pos:cc.p(310,-50),
        anchor:cc.p(0,0),
        type:2, //右边
    },
    {
        pos:cc.p(310,-300),
        anchor:cc.p(0,0),
        type:2, //左边
    },
];


//9人聊天
gameConfig.chatConfigEle = [
    {
        pos:cc.p(-330,-535),
        anchor:cc.p(0,0),
        type:1, //左边

    },
    {
        pos:cc.p(-330,-300),
        anchor:cc.p(0,0),
        type:1, //左边
    },
    {
        pos:cc.p(-330,-120),
        anchor:cc.p(0,0),
        type:1, //右边
    },
    {
        pos:cc.p(-330,60),
        anchor:cc.p(0,0),
        type:1, //左边
    },
    {
        pos:cc.p(-330,240),
        anchor:cc.p(0,0),
        type:1, //右边
    },
    //6
    {
        pos:cc.p(-330,460),
        anchor:cc.p(0,0),
        type:1, //左边
    },
    {
        pos:cc.p(-50,460),
        anchor:cc.p(0,0),
        type:1, //左边
    },
    {
        pos:cc.p(300,460),
        anchor:cc.p(0,0),
        type:2, //右边
    },
    {
        pos:cc.p(300,225),
        anchor:cc.p(0,0),
        type:2, //左边
    },
     {
        pos:cc.p(300,45),
        anchor:cc.p(0,0),
        type:2, //左边
    },
    {
        pos:cc.p(300,-135),
        anchor:cc.p(0,0),
        type:2, //右边
    },
    {
        pos:cc.p(300,-315),
        anchor:cc.p(0,0),
        type:2, //左边
    },
];


window.GameConfig = gameConfig ;